<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="errore">

<fo:root>
	<fo:layout-master-set>
		<fo:simple-page-master master-name="errore" margin-bottom="10mm" margin-left="10mm" margin-top="10mm" margin-right="10mm" page-height="297mm" page-width="210mm">
			<fo:region-body margin-top="80mm"></fo:region-body>
			<fo:region-before extent="1mm"></fo:region-before>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="errore">
		<fo:static-content flow-name="xsl-region-before">
			<fo:block-container xsl:use-attribute-sets="border-style" border-width="2mm" height="60mm" width="190mm" top="2mm" padding=".6mm" position="absolute">
			<fo:block text-align="center">
			<fo:external-graphic src="url(http://ltw0807.web.cs.unibo.it/df/pdf/img/slide-tigelle.jpg)"></fo:external-graphic>
			</fo:block>
			<fo:block text-align="end" font-style="oblique">
			by Power Chiosco
			</fo:block>
			</fo:block-container>
		</fo:static-content>
		
		<fo:flow flow-name="xsl-region-body" xsl:use-attribute-sets="errmain">
			<fo:block-container margin-top="20mm"  background-image="url(http://ltw0807.web.cs.unibo.it/df/pdf/img/errore.png)" background-repeat="repeat" height="160mm" width="190mm" top="10mm" border-style="hidden">
				<fo:block xsl:use-attribute-sets="errcode">Errore <xsl:value-of select="codice"></xsl:value-of></fo:block>
			<fo:block xsl:use-attribute-sets="errdesc" margin-top="10mm"><xsl:value-of select="descrizione"></xsl:value-of></fo:block>	
			</fo:block-container>
			
		</fo:flow>
	</fo:page-sequence>
</fo:root>

</xsl:template>
</xsl:stylesheet>
